<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>蓝湖 - 登录成功</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            background-color: #f0f4f8;
        }

        .container {
            text-align: center;
            padding: 20px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .welcome-message {
            font-size: 24px;
            color: #4CAF50;
        }

        .user-info {
            margin-top: 20px;
            font-size: 18px;
            color: #333;
        }

        .button {
            margin-top: 30px;
            padding: 12px 20px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        .button:hover {
            background-color: #45a049;
        }

        .loading {
            font-size: 18px;
            color: #888;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="loading">正在登录...</div>
        <!-- 登录成功后显示的内容 -->
        <div id="loggedInContent" style="display:none;">
            <div class="welcome-message">欢迎回来，用户！</div>
            <div class="user-info">
                <p>用户名: 张三</p>
                <p>邮箱: zhangsan@example.com</p>
            </div>
            <button class="button" onclick="goToMainPage()">进入主页面</button>
        </div>
    </div>

    <script>
        // 模拟登录过程
        setTimeout(function() {
            document.querySelector('.loading').style.display = 'none';  // 隐藏登录加载提示
            document.getElementById('loggedInContent').style.display = 'block';  // 显示登录成功后的内容
        }, 2000); // 假设2秒后登录成功

        // 跳转到主页面
        function goToMainPage() {
            alert("进入主页面");
            // 实际开发中可能是：
            // window.location.href = '/main'; 或者进行页面跳转
        }
    </script>
</body>
</html>
